<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>客户管理-个人中心-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
	<div class="container">
		<?php if ($o):?>
        <?php if($o['reject']==1):?>
        <div class="pay_title">提交订单</div>
        <div id="subOrder">
            <div class="subOrder">
            <form action="/public/pay/done" method="post">
            	<input type="hidden" name="orderid" value="<?=_get_key_val($o['id'])?>" />
            	<input type="hidden" name="orderno" value="<?=$o['no']?>" />
                <div class="subOrder1">
                    <h1>订单提交成功！还差一步，请继续完成在线支付！</h1>
                    <p>订单号：<span><?=$o['no']?></span> </p>
                    <p>订单查询：您可通过“<a href="/m">会员中心</a>”>>“<a href="/m/order">我的订单</a>”查询您的订单状态。</p>
                </div>
                <!-- <div class="subOrder2"><input name="radio" type="radio" value="" class="radio" /><img src="<?php echo _get_cfg_path('images')?>pay_1.jpg" /><p>支付￥<span><?=$o['total_fee']?></span></p></div> -->
                <div class="subOrder2"><input name="radio" type="radio" value="" class="radio"/><img src="<?php echo _get_cfg_path('images')?>pay_2.jpg" /><i>（推荐）</i><p>支付￥<span><?=$o['total_fee']?></span></p></div>
                <div class="subOrder3"><input type="button" class="but zf-btn" value="确认支付"/></div>
            </form>
            </div>
        </div>
        <?php else:?>
            <div class="pay_title" style="color:red;">请先得到对方的同意</div>
        <?php endif?>
        <?php else :?>
        	<div class="pay_title" style="color:red;">支付已过期，<a href="/m/order" style="color:blue;text-decoration:underline;">请重新发起支付</a></div>
        <?php endif;?>
    </div>
</div>
<?php include_once(VIEWPATH."public/footer.php");?>

<div class="popover-mask"></div>
<div class="popover" style="height:auto;margin:-190px 0 0 -200px;width:400px;">
    <div class="compl_top">
        <span class="fl" id="X-title" style="color:#888;">支付中...</span>
        <a href="javascript:void(0);" class="TX-win-close-alipay close fr" title="关闭">×</a>
    </div>
  	<div class="compl_con">
      <form action="" method="post" id="catupload_form">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr><td height="10"></td></tr>
            <tr>
              <td style="width:0px;"></td>
              <td>
              	<span class="fl" style="width:112px;"><img src="<?php echo _get_cfg_path("images")?>alipay_load.gif" alt="" title="支付中..." /></span>
              	<p style="margin-top:16px;">支付完成前，请勿关闭。</p>
              	<p style="margin-top:16px;">支付完成后，根据支付情况点击。</p>
              </td>
            </tr>
            <tr><td height="10"></td></tr>
            <tr><td height="10"></td></tr>
            <tr>
              <td></td>
              <td>
              	<input class="alipay_failed but commit_type TX-win-close-alipay" style="margin-left:20px;background:#ccc;border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;-o-border-radius: 4px;-webkit-border-radius: 4px;" type="button" value="支付遇到问题"/>
              	<input class="alipay_success but commit_type TX-win-close-alipay" style="margin-left:20px;background:#fb7403;border-radius: 4px;-moz-border-radius: 4px;-ms-border-radius: 4px;-o-border-radius: 4px;-webkit-border-radius: 4px;" type="button" value="支付完成"/>
              </td>
            </tr>
        </table>
      </form>
    </div>
</div>

</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script>
/* 付款提交 */
$(function(){
	$(".subOrder2 p").show();
	$('.subOrder2').css('background','url(<?php echo _get_cfg_path("images")?>branda.jpg) no-repeat');
	$(".subOrder2 input").attr("checked","checked");

	//确定支付
	$(".zf-btn").click(function(){
		$('.popover-mask').show();
		$('.popover-mask').height($(document).height());
		$('.popover').slideDown(200);
		
		window.open("/public/pay/done?no=<?=$o['no']?>");
	});

	//关闭
	$(".TX-win-close-alipay").click(function(){
		$('.popover-mask').hide();
		$('.popover').slideUp(200);
		window.location.href="/m/order/detail?id=<?=_get_key_val($o['id'])?>";
	});
});



$('.subOrder2').bind('click',function() {
	//$('input:radio').eq[0].removeAttr("checked");
	$('.subOrder2').css('background','url(<?php echo _get_cfg_path("images")?>brand.jpg) no-repeat');
	$('.subOrder2 p').hide();
	$('input:radio').val('');
	$('input:radio',this).val('text');
	$.each($("input[name='radio']"),function(){
		if($(this).val() =="text")
		{
			$(this).attr("checked","checked");
		}
	});
	   
	$(this).css('background','url(<?php echo _get_cfg_path("images")?>branda.jpg) no-repeat');
	$('p',this).show();
});
</script>
</html>